const WX_API_ROOT = 'http://localhost:8080';

const OK = 2000;
const FAIL = 4000;
const INVALID_PARAM = 4001;


module.exports = {
    RESOURCE_ROOT: WX_API_ROOT + "/static",
    LoginUrl: WX_API_ROOT + "/account/login",
    RegisterUrl: WX_API_ROOT + "/account/register",
    SendVerifyCode: WX_API_ROOT + "/account/send_verify_code",
    GET_CATE_LIST_URL: WX_API_ROOT + "/category/topCategory",
    GET_SHOP_LIST_URL: WX_API_ROOT + "/shop/index",
    GET_SHOP_INFO_URL: WX_API_ROOT + "/shop/detail",
    GET_PRODUCT_LIST_URL: WX_API_ROOT + "/product/list",
    GET_CART_ITEM_COUNT: WX_API_ROOT + "/cart/count",
    CREATE_CART_ITEM: WX_API_ROOT + "/cart/create",
    GET_CART_LIST: WX_API_ROOT + "/cart/list",
    GET_SHOP_LIST_IN_CART: WX_API_ROOT + "/cart/shopList",
    GET_PRODUCT_LIST_IN_CART: WX_API_ROOT + "/cart/list",
    GET_PRODUCT_CHECKED_LIST_IN_CART: WX_API_ROOT + "/cart/list/checked",
    CHANGE_CART_CHECKED: WX_API_ROOT + "/cart/checked",
    CREATE_ORDER: WX_API_ROOT + "/order/create",
    GET_ORDER_LIST: WX_API_ROOT + "/order/list",
    GET_ORDER_DETAIL: WX_API_ROOT + "/order/detail",
    SHOP_SERVE: {
        GET_ORDER_LIST: WX_API_ROOT + "/shop_serve/order/list",
        UPDATE_ORDER: WX_API_ROOT + "/shop_serve/order/update"
    },
    OK: OK,
    FAIL: FAIL,
    INVALID_PARAM: INVALID_PARAM
}